OtpButtonDefaults

Default styles for OtpVerifyButton and OtpResendButton. From Swift, call for example OtpButtonDefaults.shared.style().

Functions

Link copied to clipboard

Dynamic system colors that adapt to dark mode and Increase Contrast.

fun colors(content: UIColor = UIColor.labelColor(), container: UIColor = UIColor.secondarySystemBackgroundColor(), border: UIColor = UIColor.systemGrayColor(), disabledContent: UIColor = UIColor.secondaryLabelColor(), disabledContainer: UIColor = UIColor.systemBackgroundColor(), disabledBorder: UIColor = UIColor.systemGray3Color()): OtpButtonColors
Link copied to clipboard

Style with all defaults.

fun style(font: UIFont = UIFont.systemFontOfSize(17.0, weight = UIFontWeightSemibold), fontTextStyle: UIFontTextStyle = UIFontTextStyleHeadline, cornerRadius: Double = 12.0, minHeight: Double = 48.0, horizontalPadding: Double = 20.0, verticalPadding: Double = 10.0, borderWidth: Double = 1.0, colors: OtpButtonColors = colors()): OtpButtonStyle